s=input()
w=s.split()
i=str
l=['1','2','3','4','5','6','7','8','9','0']
if len(w) == 3:
    
    for i in w:
        if i != l:
            
            if i == "one":
                print("1", end="")
            if i == "two":
                print("2", end="")
            if i == "three":
                print("3", end="")
            if i == "four":
                print("4", end="")
            if i == "five":
                print("5", end="")
            if i == "six":
                print("6", end="")
            if i == "seven":
                print("7", end="")
            if i == "eight":
                print("8", end="")
            if i == "nine":
                print("9", end="")
            if i == "zero":
                print("0", end="")
                
        else:
            print("Wrong input")
            
else:
    print("Wrong input")